package com.cwl.pattern.责任链模式;

/**
 * @program: pattern
 * @description: 抽象的处理角色
 * @author: ChenWenLong
 * @create: 2019-07-05 17:56
 **/
public abstract class Handler {

    private Handler next;
    public void setNext(Handler next) {
        this.next=next;
    }

    public Handler getNext() {
        return next;
    }

    //处理请求的方法
    public abstract void handleRequest(String request);
}
